package com.bawei.bydayzg_two.adapter

import android.widget.CheckBox
import android.widget.ImageView
import android.widget.TextView
import com.bawei.base.bean.CartItem0
import com.bawei.base.bean.GetOrderDetail
import com.bawei.base.bean.OrderInfo
import com.bawei.base.param.OrderDetail
import com.bawei.bydayzg_two.R
import com.bawei.bydayzg_two.Utils.GildUtils
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class OrderChildAdapter:BaseQuickAdapter<OrderInfo,BaseViewHolder>(R.layout.item_creat_order) {
    override fun convert(holder: BaseViewHolder, item: OrderInfo) {
        GildUtils.loadImg(holder.itemView.context,item.image,holder.getView(R.id.car_iv))
        holder.setText(R.id.cart_name,item.storeName)
        holder.setText(R.id.cart_sku,"属性：${item.sku}")
        holder.setText(R.id.cart_price,"$${item.price}")
        holder.setText(R.id.cart_num,"X${item.cartNum}")
    }
}